package com.example.jikeyoujikeyou.office_sz.model.base;

import org.json.JSONException;

/**
 * Created by tongkang on 2017/12/26.
 */

public class BaseStaff extends BaseModel{

    /**
     * 构造方法
     *
     * @param json -对象的json字符串
     * @throws JSONException
     */
    public BaseStaff(String json) throws JSONException {
        super(json);
    }
    String name;
    String phone;
    public String getName() {
        if (null == name) {
            return (String) get("name");
        }
        return name;
    }
    public String getPhone() {
        if (null == phone) {
            return (String) get("phone");
        }
        return phone;
    }

    public void setName(String name) {
        put("name", name);
        this.name = name;
    }

    public void setPhone(String phone) {
        put("phone", phone);
        this.phone = phone;
    }
}
